<!--
 * @Description: 订单详情
 * @Author: zzj
 * @Date: 2021-10-29 14:42:30
 * @LastEditors: zzj
 * @LastEditTime: 2021-10-29 16:50:46
-->
<template>
	<div class="order_details">
		<h2>{{ $route.query }}</h2>
		<div class="details_header">
			<el-button size="small" plain type="success" @click="toOrder">返回</el-button>
		</div>
		<div class="container">
			<el-table :data="detailsData">
				<el-table-column prop="id" label="订单编号"></el-table-column>
			</el-table>
		</div>
	</div>
</template>

<script>
import {get} from "@/utils/request.js"
export default {
	data() {
		return {
			detailsData:[],
			form:[]
		}
	},
	mounted(){
		// this.loadOrderDetils();
	},
	methods:{
		// 加载订单详细数据
		loadOrderDetils(){
			let url = "/order/findById";
			let id = this.$route.query.id;
			console.log(id)
			get(url,this.params).then(resp => {
				this.detailsData = resp.data;
			})
		},
		// 返回订单页面
		toOrder(){
			this.$router.push({
				path:"/order/Order"
			})
		},
	},
}
</script>

<style lang="scss" scoped>

</style>